package com.example.weather1.mapper;

import com.example.weather1.entity.UserEntity;
import com.example.weather1.entity.weather;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WeatherMapper {

    @Select("select * from wea_s")
    List<weather> getAll();

    @Select("select * from wea_s where area= '${area}' ")
    weather getOneDayWeatherByArea(@Param("area") String area);

    @Select("select * from wea_s_seven where area= '${area}' ")
    List<weather> getSevenDayWeatherByArea(@Param("area") String area);
}
